import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import minidraw.framework.DrawingEditor;
import minidraw.standard.StandardDrawingView;


@SuppressWarnings("serial")
public class DrwViewWithColoredBackground extends StandardDrawingView {

	private Color background;
	private Dimension size;

	public DrwViewWithColoredBackground(DrawingEditor editor, Dimension size, Color background) {
		super(editor, size);
		this.size = size;
		this.background = background;
	}

	public void drawBackground(Graphics g) {
		g.setColor(background);
		g.fillRect(0, 0, size.width, size.height);
	}

}
